import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './style/index.less'
import ElementUI from 'element-ui'
// 引入axios
// @是src文件的别名
import axios from '@/utils/request.js'
import MyBreadcrumb from '@/components/breadcrumb.vue'
import MyChannel from '@/components/channel.vue'
import MyCover from '@/components/cover.vue'
import 'element-ui/lib/theme-chalk/index.css'
// 注册全局组件
Vue.component('MyBreadcrumb', MyBreadcrumb)
Vue.component('MyChannel', MyChannel)
Vue.component('MyCover', MyCover)
// 往vue原型上加载上axios
Vue.prototype.$http = axios
Vue.config.productionTip = false
// 以插件的格式引入element.ui
Vue.use(ElementUI)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
